#include "lvgl.h"
#include "time.h"

#define MAX_MOVIES 20
#define ROWS 4
#define COLS 6

#ifndef __MOVIEINFO_H
#define __MOVIEINFO_H



typedef struct {
    char name[64];
    char time[32];
    int price;
    int seats[ROWS][COLS];
} Movie;

extern Movie movie_list[MAX_MOVIES];
extern int movie_count;


extern lv_timer_t *movie_timer;
extern int current_movie_index;
extern time_t last_user_interact_time;








void load_movies_from_json(const char *filename);
void update_movie_display(int index);
void save_movies_to_json(const char *filename);





#endif